﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;


namespace com.guojin.mj.net.message.login
{
    public class VieForZhuangReq: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  37 ;

        public int LocationIndex { get; set; }

        public void decode(Input _in)
        {
        }

        public void encode(Output _out)
        {
            _out.writeInt(LocationIndex);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("LocationIndex= {0}", LocationIndex);
        }

        public static VieForZhuangReq create(int locationIndex)
        {
            var temp = new VieForZhuangReq();
            temp.LocationIndex = locationIndex;
            return temp;
        }
    }
}